#include<stdio.h>
#include<math.h>

int main( void ) {

    double  principal , rate , amount ;     // principal是本金， rate是银行利率， amount是变化的存款，

    int year = 1, k ;   // k是存款多少年，

    scanf( "%lf %lf %d", &principal, &rate, &k );

    printf(  "%4s %21s\n", "Year", "Amount on deposit" );

    for( ; year <= k;  ) {

        amount = principal * pow( 1.0 + rate, year );

        printf( "%4d %21.2f\n", year++, amount );
    }

    return 0;
}